﻿using GeneralServices.PatternCommand;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleAppTestPatternCommand
{
    public class User : AbstractInvoker
    {
        public User(IReceiver receiver)
            : base(receiver)
        {

        }

        public override void Action(AbstractCommandArgs _args)
        {
            AbstractCommand command = new CommandCalc(Receiver, _args);
            command.Execute();

            this.AddCommand(command);
        }
    }
}
